package cn.akwangl.concurrency.web.model.order.service;

import cn.akwangl.concurrency.web.model.order.pojo.OrderVo;
import cn.akwangl.concurrency.web.model.order.pojo.SubmitOrderDto;

/**
 * 创建订单(这是个线程不安全)
 *
 * @author 阿坤同学
 * @date 2022-11-24 15:12
 */
public interface CreateOrdersService {

    /**
     * 创建订单.
     *
     * @param submitOrderDto 订单请求包装类
     * @return 订单VO
     * @author 阿坤同学
     * @date 2022-11-22 16:51
     */
    OrderVo createOrder(SubmitOrderDto submitOrderDto);
}